import hyRequest from '@/service/request'

// 首页轮播图
export function getTopBanner() {
  return hyRequest({
    method: 'get',
    url: '/banner'
  })
}
// 推荐歌曲
export function getHotRecommend() {
  return hyRequest({
    method: 'get',
    url: '/personalized'
  })
}
// 获取新专辑
export function getNewAlbum(offset = 0, limit = 10) {
  return hyRequest({
    method: 'get',
    url: '/album/new',
    params: {
      offset,
      limit
    }
  })
}
// 榜单列表详情
export function getPlayListDetail(id: number) {
  return hyRequest({
    method: 'get',
    url: '/playlist/detail',
    params: {
      id
    }
  })
}
// 获取推荐歌手
export function getArtistList(limit = 10) {
  return hyRequest({
    method: 'get',
    url: '/artist/list',
    params: {
      limit
    }
  })
}
